package list;

import entity.LinkNode;

public class LinkNodeList {
	
	LinkNode head = null;
	
	public LinkNode init(int[] arr) {
		for(int i = 0; i < arr.length; i++) {
			if(head == null) {
				head = new LinkNode(arr[i]);
				continue;
			}
			LinkNode tempNode = head;
			while(tempNode.next != null) {
				tempNode = tempNode.next;
			}
			tempNode.next = new LinkNode(arr[i]);
		}
		return head;
	}
	
	public static void main(String[] args) {
		
		int[] arr = new int[] {1, 2, 3, 4, 5, 6, 7};
		LinkNode head = new LinkNodeList().init(arr);
		
		String s = new String("11");
		
		System.out.println(s.getClass().getClassLoader());
		
		System.out.println("end");
		
	}

}
